﻿using System.ComponentModel.DataAnnotations;

namespace YuYuKiCms.Framework.Localization
{
    public class CompareFromDb : CompareAttribute
    {
        public CompareFromDb(string otherProperty, string errorMessage) : base(otherProperty)
        {
            ErrorMessage = errorMessage;
        }

        #region Overrides of CompareAttribute

        public override string FormatErrorMessage(string name)
        {
            return base.FormatErrorMessage(name);
        }

        #endregion
    }
}